package com.chuangshi.core.vote;

import com.chuangshi.core.kit.Constant;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author: zouliming
 * @date: 2019-02-20
 */
@SpringBootApplication(exclude = {
        DataSourceAutoConfiguration.class,
        HibernateJpaAutoConfiguration.class})
@EnableTransactionManagement
@EnableEurekaClient
@EnableFeignClients(basePackages = {Constant.PACKAGE})
@ComponentScan(basePackages = {Constant.PACKAGE})
public class ProjectVoteApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProjectVoteApplication.class, args);
    }
}
